The ActiveCredit is a freeware credit card number validation program. It checks for the valid length, prefix, and check digit for the major credit cards such as Visa, MasterCard, American Express, Discover, Diner Club, JBC, and enRoute.
The ActiveCredit can be used as a front line business transaction validation program to check the validity of credit cards before accept them for the main processing. It is very easy to use and a user can choose it to be either visual or non-visual during the runtime.
Usage)
If the ActiveCredit is used as a visual component in the application program, you don't have to do anything but drop it on the form. The ActiveCredit will take care of the rest. However, if the control is used as a non-visual component, you need code your application program as follows:
method:
isValidCard(Card Type, Card Number)
returns integer
property:
errCode
returns variant
errMessage
return variant
i.e)
public sub BtnValidate_Click()
If creditCard1.isValidCard("Visa", "4123123412341234") = 0 Then
'this card number is valid, so do whatever you need to do for further processing
I, THE AUTHOR, MAKE NO WARRANTIES ABOUT THE SUITABILITY OF THE SOFTWARE AND SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY USER AS A RESULT OF USING, MODIFYING OR DISTRIBUTING THE SOFTWARE OR THEIR DERIVATIVES. *******************************************************************************